Trees | Indices | Toggle frames |
---|
event.EventDispatcher --+ | AbstractDocument --+ | UnformattedDocument
A document having uniform style over all text.
Changes to the style of text within the document affects the entire document. For convenience, the position parameters of the style methods may therefore be omitted.
on_delete_text(self,
start,
end)
Text was deleted from the document.
(Inherited from pyglet.text.document.AbstractDocument)
|
|
on_insert_text(self,
start,
text)
Text was inserted into the document.
(Inherited from pyglet.text.document.AbstractDocument)
|
|
on_style_text(self,
start,
end,
attributes)
Text character style was modified.
(Inherited from pyglet.text.document.AbstractDocument)
|
__init__(self,
text='
' )
|
|
AbstractRunIterator |
get_style_runs(self,
attribute)
Get a style iterator over the given style attribute.
|
get_style(self,
attribute,
position=None)
Get an attribute style at the given position.
|
|
set_style(self,
start,
end,
attributes)
Set text style of some or all of the document.
|
|
set_paragraph_style(self,
start,
end,
attributes)
Set the style for a range of paragraphs.
|
|
AbstractRunIterator |
get_font_runs(self,
dpi=None)
Get a style iterator over the pyglet.font.Font instances used in
the document.
|
pyglet.font.Font |
get_font(self,
position=None,
dpi=None)
Get the font instance used at the given position.
|
get_element_runs(self) | |
delete_text(self,
start,
end)
Delete text from the document.
(Inherited from pyglet.text.document.AbstractDocument)
|
|
dispatch_event(self,
event_type,
*args)
Dispatch a single event to the attached handlers.
(Inherited from pyglet.event.EventDispatcher)
|
|
event(self,
*args)
Function decorator for an event handler.
(Inherited from pyglet.event.EventDispatcher)
|
|
InlineElement |
get_element(self,
position)
Get the element at a specified position.
(Inherited from pyglet.text.document.AbstractDocument)
|
int |
get_paragraph_end(self,
pos)
Get the end position of a paragraph.
(Inherited from pyglet.text.document.AbstractDocument)
|
int |
get_paragraph_start(self,
pos)
Get the starting position of a paragraph.
(Inherited from pyglet.text.document.AbstractDocument)
|
get_style_range(self,
attribute,
start,
end)
Get an attribute style over the given range.
(Inherited from pyglet.text.document.AbstractDocument)
|
|
insert_element(self,
position,
element,
attributes=None)
Insert a element into the document.
(Inherited from pyglet.text.document.AbstractDocument)
|
|
insert_text(self,
start,
text,
attributes=None)
Insert text into the document.
(Inherited from pyglet.text.document.AbstractDocument)
|
|
pop_handlers(self)
Pop the top level of event handlers off the stack.
(Inherited from pyglet.event.EventDispatcher)
|
|
push_handlers(self,
*args,
**kwargs)
Push a level onto the top of the handler stack, then attach zero or
more event handlers.
(Inherited from pyglet.event.EventDispatcher)
|
|
register_event_type(cls,
name)
Register an event type with the dispatcher.
(Inherited from pyglet.event.EventDispatcher)
|
|
remove_handler(self,
name,
handler)
Remove a single event handler.
(Inherited from pyglet.event.EventDispatcher)
|
|
remove_handlers(self,
*args,
**kwargs)
Remove event handlers from the event stack.
(Inherited from pyglet.event.EventDispatcher)
|
|
set_handler(self,
name,
handler)
Attach a single event handler.
(Inherited from pyglet.event.EventDispatcher)
|
|
set_handlers(self,
*args,
**kwargs)
Attach one or more event handlers to the top level of the handler
stack.
(Inherited from pyglet.event.EventDispatcher)
|
str |
text
Document text.
(Inherited from pyglet.text.document.AbstractDocument)
|
event_types =
(Inherited from pyglet.text.document.AbstractDocument)
|
Set the style for a range of paragraphs.
This is a convenience method for set_style that aligns the character range to the enclosing paragraph(s).
Get a style iterator over the pyglet.font.Font instances used in the document.
The font instances are created on-demand by inspection of the font_name, font_size, bold and italic style attributes.
See Also: get_font_runs
Trees | Indices | Toggle frames |
---|
Generated by Epydoc 3.0beta1 on Thu Dec 31 17:58:19 2009 | http://epydoc.sourceforge.net |